<?php
namespace TwinPeaks\Core\Html;

class CForm extends CElement
{
	const ATTR_ACTION = 'action';
	const ATTR_METHOD = 'method';
	
	function __construct($url = null)
	{
		parent::__construct('form');
		$this->setAttr(self::ATTR_METHOD, 'post');
		if ($url)
			$this->setAttr(self::ATTR_ACTION, $url);
	}
}
